package com.you.atlas.web.home.module.screen;

import java.io.IOException;

import org.springframework.beans.factory.annotation.Autowired;

import com.alibaba.citrus.turbine.TurbineRunData;
import com.alibaba.citrus.turbine.dataresolver.Param;
import com.you.member.dal.dao.MemberDAO;

public class UpdateData {

    @Autowired
    private MemberDAO memberDAO;

    public void execute(@Param("key") String key, TurbineRunData rundata) throws IOException {
        if ("hello1234".equals(key)) {
            memberDAO.updateDate();
            rundata.getResponse().getWriter().write("ok...");
        }
    }
}
